package com.inspire.server.controller;

import com.inspire.server.netty.Server;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：inspire
 * @date ：Created in 2022/8/12 12:03
 * @description：
 * @modified By：inspire
 * @version:
 */
@RestController
public class ServerController {
    private static final Logger logger = LoggerFactory.getLogger(ServerController.class);

    @RequestMapping("server")
    public String sendDemo(){

        return "Server";
    }

    public static void main(String[] args) {
        logger.info("Hello Server!");
        Server server = new Server();
        server.serverStart();
    }
}
